package com.entrogy.service;

import com.alibaba.fastjson.JSONObject;
import com.entrogy.bean.CourseHomeworkEntity;
import com.entrogy.bean.HomeworkEntity;

import java.util.List;

/**
 * @ClassName HomeworkService
 * @Description
 * @Author luoxingjiang
 * @Date 2019/7/22 0022 上午 11:15
 * @Version 1.0
 **/
public interface HomeworkService {
    List<HomeworkEntity> listHomeworkInfo(String teacherId, Integer schoolCode, Integer classId, Integer courseId);

    Integer addHomework(HomeworkEntity homework);

    List<String> listClassParentOpenId(Integer classId, Integer schoolCode);

    HomeworkEntity getHomeworkDetail(Integer homeworkId);

    List<CourseHomeworkEntity> listClassAndCourse(Integer schoolCode, String uid);

    List<JSONObject> listStudentByParentId(String uid);

    List<HomeworkEntity> listStudentHomeworkInfo(Integer studentId);

    Integer countTeacherSendHomework(String uid, Integer classId, Integer courseId);

    Integer countStudentReceiveHomework(Integer studentId);

    /**
     * 新增作业发送记录
     * @param homeworkId
     * @param teacherId
     * @param sendParentOpenIdList
     * @return
     */
    boolean insertHomeworkSendRecord(Integer homeworkId, String teacherId, List<String> sendParentOpenIdList);
}
